* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.5;
}

.container {
    max-width: 750px;
    margin: 0 auto;
    background-color: #fff;
}

/* 轮播图样式 */
.swiper-container {
    position: relative;
    width: 100%;
    height: 375px;
    overflow: hidden;
    background-color: #f8f8f8;
}

.swiper-wrapper {
    display: flex;
    transition: transform 0.3s ease;
}

.swiper-slide {
    flex: 0 0 100%;
    height: 375px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-slide img {
    max-width: 100%;
    max-height: 100%;
}

.swiper-indicator {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 5px;
}

.swiper-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
}

.swiper-dot.active {
    background-color: #fff;
}

/* 商品信息样式 */
.product-info {
    padding: 15px;
    background-color: #fff;
}

.product-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1.4;
}

.promotion {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.promotion-tag {
    background-color: #ff3b30;
    color: white;
    font-size: 12px;
    padding: 2px 5px;
    border-radius: 2px;
    margin-right: 8px;
}

.promotion-text {
    font-size: 14px;
    color: #ff3b30;
}

.price-section {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.current-price {
    font-size: 24px;
    color: #ff3b30;
    font-weight: bold;
}

.original-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
    margin-left: 10px;
}

/* 拼团信息样式 */
.group-buy-section {
    background-color: #fff;
    margin-top: 10px;
    padding: 15px;
}

.section-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
}

.group-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.group-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background-color: #f8f8f8;
    border-radius: 8px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #ff3b30;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    margin-right: 12px;
}

.group-info {
    flex: 1;
}

.group-name {
    font-size: 14px;
    margin-bottom: 4px;
}

.group-status {
    font-size: 12px;
    color: #ff3b30;
}

.group-action {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.countdown {
    font-size: 14px;
    color: #ff3b30;
    margin-bottom: 5px;
}

.join-btn {
    background-color: #ff3b30;
    color: white;
    border: none;
    padding: 6px 15px;
    border-radius: 15px;
    font-size: 14px;
    cursor: pointer;
}

/* 底部操作栏 */
.bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    display: flex;
    height: 50px;
    border-top: 1px solid #eee;
    z-index: 100;
}

.action-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #666;
    background-color: #fff;
    border: none;
    cursor: pointer;
}

.action-btn .icon {
    font-size: 18px;
    margin-bottom: 2px;
}

.buy-btns {
    display: flex;
    flex: 2;
}

.solo-buy {
    flex: 1;
    background-color: #ff9500;
    color: white;
    border: none;
    font-size: 16px;
    cursor: pointer;
}

.group-buy {
    flex: 1;
    background-color: #ff3b30;
    color: white;
    border: none;
    font-size: 16px;
    cursor: pointer;
}

/* 支付页面样式 */
.payment-page {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #fff;
    z-index: 200;
    padding: 20px;
    flex-direction: column;
    align-items: center;
}

.payment-header {
    width: 100%;
    text-align: center;
    padding: 15px 0;
    font-size: 18px;
    font-weight: bold;
    border-bottom: 1px solid #eee;
    margin-bottom: 30px;
}

.payment-amount {
    font-size: 24px;
    color: #ff3b30;
    margin-bottom: 30px;
}



.qrcode-container {
    width: 250px;
    height: 250px;
    background-color: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    border-radius: 8px;
}

.qrcode-placeholder {
    text-align: center;
    color: #999;
}

.payment-actions {
    display: flex;
    gap: 20px;
}

.cancel-btn {
    padding: 10px 30px;
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
}

.confirm-btn {
    padding: 10px 30px;
    background-color: #ff3b30;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.loading {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 300;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 16px;
}